"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// d:/my-lean/my-mall/alova.config.ts
var alova_config_exports = {};
__export(alova_config_exports, {
  default: () => alova_config_default
});
module.exports = __toCommonJS(alova_config_exports);
var alova_config_default = {
  generator: [
    {
      /**
       * file input. support:
       * 1. openapi json file url
       * 2. local file
       */
      input: "https://petstore3.swagger.io/api/v3/openapi.json",
      /**
       * input file platform. Currently only swagger is supported.
       * When this parameter is specified, the input field only needs to specify the document address without specifying the openapi file
       */
      platform: "swagger",
      /**
       * output path of interface file and type file.
       * Multiple generators cannot have the same address, otherwise the generated code will overwrite each other.
       */
      output: "src/api",
      /**
       * the mediaType of the generated response data. default is `application/json`
       */
      responseMediaType: "application/json",
      /**
       * the bodyMediaType of the generated request body data. default is `application/json`
       */
      bodyMediaType: "application/json",
      /**
       * the generated api version. options are `2` or `3`, default is `auto`.
       */
      version: 3,
      /**
       * type of generated code. The options ​​are `auto/ts/typescript/module/commonjs`.
       */
      type: "typescript",
      /**
       * exported global api name, you can access the generated api globally through this name, default is `Apis`.
       * it is required when multiple generators are configured, and it cannot be repeated
       */
      global: "Apis",
      /**
       * filter or convert the generated api information, return an apiDescriptor, if this function is not specified, the apiDescripor object is not converted
       */
      handleApi: (apiDescriptor) => {
        if (apiDescriptor.deprecated) {
          return void 0;
        }
        return apiDescriptor;
      }
    }
  ],
  /**
   * extension only
   * whether to automatically update the interface, enabled by default, check every 5 minutes, closed when set to `false`
   */
  autoUpdate: {
    // Update when editor is launched
    launchEditor: true,
    // Check for updates every 5 minutes
    interval: 5 * 60 * 1e3
  }
};
